package com.ruoyi.common.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【附件列表】对象 attachments_list
 * 
 * @author dustball
 * @date 2021-04-13
 */
public class AttachmentsList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 文档id */
    @Excel(name = "文档id")
    private String docunid;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filepath;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String filename;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String filetype;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private String filesize;

    /** 删除标记：0删除，1未删除 */
    @Excel(name = "删除标记：0删除，1未删除")
    private String deleteflag;

    /** 上传人ID */
    @Excel(name = "上传人ID")
    private String addid;

    /** 上传人中文名称 */
    @Excel(name = "上传人中文名称")
    private String addname;

    /** 上传日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adddate;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setDocunid(String docunid) 
    {
        this.docunid = docunid;
    }

    public String getDocunid() 
    {
        return docunid;
    }
    public void setFilepath(String filepath) 
    {
        this.filepath = filepath;
    }

    public String getFilepath() 
    {
        return filepath;
    }
    public void setFilename(String filename) 
    {
        this.filename = filename;
    }

    public String getFilename() 
    {
        return filename;
    }
    public void setFiletype(String filetype) 
    {
        this.filetype = filetype;
    }

    public String getFiletype() 
    {
        return filetype;
    }
    public void setFilesize(String filesize) 
    {
        this.filesize = filesize;
    }

    public String getFilesize() 
    {
        return filesize;
    }
    public void setDeleteflag(String deleteflag) 
    {
        this.deleteflag = deleteflag;
    }

    public String getDeleteflag() 
    {
        return deleteflag;
    }
    public void setAddid(String addid) 
    {
        this.addid = addid;
    }

    public String getAddid() 
    {
        return addid;
    }
    public void setAddname(String addname) 
    {
        this.addname = addname;
    }

    public String getAddname() 
    {
        return addname;
    }
    public void setAdddate(Date adddate) 
    {
        this.adddate = adddate;
    }

    public Date getAdddate() 
    {
        return adddate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("docunid", getDocunid())
            .append("filepath", getFilepath())
            .append("filename", getFilename())
            .append("filetype", getFiletype())
            .append("filesize", getFilesize())
            .append("deleteflag", getDeleteflag())
            .append("addid", getAddid())
            .append("addname", getAddname())
            .append("adddate", getAdddate())
            .toString();
    }
}
